curl --request POST \
--url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Uploads a file with segment users.
curl --request POST \
--url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.
The external ID of the segment.
The action to perform on the segment.
add, remove, replace Successful Response
Was this page helpful?